/*
 * @Author: szx
 * @Date: 2022-05-13 14:51:15
 * @LastEditTime: 2022-05-13 15:09:32
 * @Description:
 * @FilePath: \leetcode\面试题\02\03\03.js
 */
/**
 * @param {ListNode} node
 * @return {void} Do not return anything, modify node in-place instead.
 */
 var deleteNode = function (node) {
    node.val = node.next.val
    // 当前节点的 next，指向当前节点的下一个节点的 next
    node.next = node.next.next
};
